//
//  SQAddressListViewController.h
//  pai
//
//  Created by pro on 14-11-17.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQBaseNormalViewController.h"
#import "SQAddressEditCell.h"
#import "SQAddressSelectCell.h"
#import "SQSocket.h"
#import "SQNewAddressViewController.h"

@protocol SQAddressSelectedDelegate <NSObject>

- (void) addressSelected:(addr_t)address;

@end

@interface SQAddressListViewController : SQBaseNormalViewController<UICollectionViewDelegate,UICollectionViewDataSource,addressDelegate,UIScrollViewDelegate,addressChangeDelegate>

@property (nonatomic) UICollectionView * myCollection;

@property id<SQAddressSelectedDelegate> delegate;
@property NSMutableArray *dataMArr;

//socket分包临时数据
@property NSMutableData* socketTempData;
@property NSInteger socketLength;
@property NSInteger templength;

//选中的地址
@property NSInteger selectedId;

@property NSString* type;
@end
